/**
 * 模拟数据
 */


/**
 * 登陆
 */
export function login() {
    return new Promise(()=>{
        let data = {
            result: {
                code: 200,
                message: "登录成功",
                token: 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJleHAiOjE2NDE3OTc0ODgsInVzZXJuYW1lIjoiamVlY2cifQ.vYFq0EWle5mcobDwM90kxwIdBoCTLO9CBMubwOxY0KQ',
                tenantList: [
                    {
                        beginDate: "2020-07-12 19:15:13",
                        createBy: "admin",
                        createTime: "2020-07-12 19:10:22",
                        endDate: "2024-07-13 19:15:13",
                        id: 2,
                        name: "南京大米租户2",
                        status: 1
                   }
                ],
                userInfo: {
                    activitiSync: 1,
                    avatar: "http://minio.jeecg.com/otatest/tmp_5f8cf579ff73b0ae00503a3b0108c3da_1641698851322.jpg",
                    birthday: "2021-12-23",
                    clientId: "85674a1a850898417b9c62029db8f5c4",
                    createBy: "admin",
                    createTime: "2019-02-13 16:02:36",
                    delFlag: 0,
                    departIds: "c6d7cb4deeac411cb3384b1b31278596",
                    email: "2234@qq.com",
                    id: "a75d45a015c44384a04449ee80dc3503",
                    orgCode: "A01",
                    orgCodeTxt: null,
                    phone: "19685852541",
                    post: "ha110",
                    realname: "测试",
                    relTenantIds: "2",
                    sex: 2,
                    status: 1,
                    telephone: "",
                    updateBy: "jeecg",
                    updateTime: "2022-01-09 11:27:32",
                    userIdentity: 2,
                    username: "jeecg",
                    workNo: "A002"
                },
                departs: [
                    {
                        address: null,
                        createBy: "admin",
                        createTime: "2019-02-11 14:21:51",
                        delFlag: "0",
                        departName: "北京国炬公司",
                        departNameAbbr: null,
                        departNameEn: null,
                        departOrder: 0,
                        description: null,
                        fax: null,
                        id: "c6d7cb4deeac411cb3384b1b31278596",
                        memo: null,
                        mobile: null,
                        orgCategory: "1",
                        orgCode: "A01",
                        orgType: "1",
                        parentId: "",
                        qywxIdentifier: "8",
                        status: null,
                        updateBy: "admin",
                        updateTime: "2021-05-20 17:30:42"
                    }
                ]
            }
        };
        return data;
    })
}
/**
 * 
 * @returns 权限列表
 */
export function queryPermissionsByUser() {
    return new Promise((resolve)=>{
        let data = {
            code: 0,
            message: "",
            result: {
                menu: [
                    {
                        component: "dashboard/Analysis",
                        id: "9502685863ab87f0ad1134142788a385",
                        meta: {keepAlive: true, internalOrExternal: false, icon: "home", componentName: "Analysis", title: "首页"},
                        name: "dashboard-analysis",
                        path: "/dashboard/analysis",
                        redirect: null,
                        route: "1"
                    },
                    {
                     component: "layouts/RouteView",
                     id: "d7d6e2e4e2934f2c9385a623fd98c6f3",
                     meta: {
                        componentName: "RouteView",
                        icon: "setting",
                        internalOrExternal: false,
                        keepAlive: false,
                        title: "系统管理",
                     },
                     name: "system",
                     path: "/system",
                     redirect: null,
                     route: "1",
                     children: [
                        {
                            component: "system/UserList",
                            id: "3f915b2769fc80648e92d04e84ca059d",
                            meta: {keepAlive: false, internalOrExternal: false, componentName: "UserList", title: "用户管理"},
                            name: "isystem-user",
                            path: "/isystem/user",
                            route: "1",
                        },
                        {
                            component: "system/RoleUserList",
                            id: "190c2b43bec6a5f7a4194a85db67d96a",
                            meta: {keepAlive: true, internalOrExternal: false, componentName: "RoleUserList", title: "角色管理"},
                            name: "isystem-roleUserList",
                            path: "/isystem/roleUserList",
                            route: "1",
                        },
                        {
                            component: "system/NewPermissionList",
                            id: "1170592628746878978",
                            meta: {keepAlive: true, internalOrExternal: false, componentName: "NewPermissionList", title: "菜单管理"},
                            name: "isystem-newPermissionList",
                            path: "/isystem/newPermissionList",
                            route: "1"
                        },
                        {
                            component: "system/TenantList",
                            id: "1280350452934307841",
                            meta: {keepAlive: false, internalOrExternal: false, componentName: "TenantList", title: "租户管理"},
                            name: "isys-tenant",
                            path: "/isys/tenant",
                            route: "1"
                        },
                        {
                            component: "system/DepartListSync",
                            id: "45c966826eeff4c99b8f8ebfe74511fc",
                            meta: {keepAlive: false, internalOrExternal: false, componentName: "DepartListSync", title: "部门管理"},
                            name: "isystem-depart",
                            path: "/isystem/depart",
                            route: "1"
                        },
                        {
                            component: "system/DepartUserList",
                            id: "5c2f42277948043026b7a14692456828",
                            meta: {keepAlive: false, internalOrExternal: false, componentName: "DepartUserList", title: "我的部门"},
                            name: "isystem-departUserList",
                            path: "/isystem/departUserList",
                            route: "1"
                        },
                        {
                            component: "system/SysPositionList",
                            id: "1174506953255182338",
                            meta: {keepAlive: false, internalOrExternal: false, componentName: "SysPositionList", title: "职务管理"},
                            name: "isystem-position",
                            path: "/isystem/position",
                            route: "1"
                        },
                        {
                            component: "system/DictList",
                            id: "f1cb187abf927c88b89470d08615f5ac",
                            meta: {keepAlive: false, internalOrExternal: false, componentName: "DictList", title: "数据字典"},
                            name: "isystem-dict",
                            path: "/isystem/dict",
                            route: "1"
                        },
                        {
                            component: "system/SysCategoryList",
                            id: "ebb9d82ea16ad864071158e0c449d186",
                            meta: {keepAlive: false, internalOrExternal: false, componentName: "SysCategoryList", title: "分类字典"},
                            name: "isys-category",
                            path: "/isys/category",
                            route: "1"
                        },
                        {
                            component: "system/SysAnnouncementList",
                            id: "e08cb190ef230d5d4f03824198773950",
                            meta: {keepAlive: false, internalOrExternal: false, componentName: "SysAnnouncementList", title: "系统通告"},
                            name: "isystem-annountCement",
                            path: "/isystem/annountCement",
                            route: "1"
                        }
                     ],
                    }
                ]
            }
        } 
        resolve(data);
    })
}

/**
 * 加载tree
 * @returns 
 */
export function queryDepartTree() {
    return new Promise(resolve => {
        let data = {
            code: 0,
            message: "",
            result: [
                {
                    address: null,
                    children: [],
                    createBy: "admin",
                    createTime: "2019-02-26 16:36:39",
                    delFlag: "0",
                    departName: "卓尔互动公司",
                    departNameAbbr: null,
                    departNameEn: null,
                    departOrder: 0,
                    description: null,
                    fax: null,
                    id: "6d35e179cd814e3299bd588ea7daed3f",
                    isLeaf: false,
                    key: "6d35e179cd814e3299bd588ea7daed3f",
                    memo: null,
                    mobile: null,
                    orgCategory: "1",
                    orgCode: "A02",
                    orgType: "1",
                    parentId: "",
                    qywxIdentifier: "2",
                    status: null,
                    title: "卓尔互动公司",
                    updateBy: "qinfeng",
                    updateTime: "2021-05-20 16:01:29",
                    value: "6d35e179cd814e3299bd588ea7daed3f"
                },
                {
                    address: null,
                    children: [],
                    createBy: "admin",
                    createTime: "2019-02-11 14:21:51",
                    delFlag: "0",
                    departName: "北京国炬公司",
                    departNameAbbr: null,
                    departNameEn: null,
                    departOrder: 0,
                    description: null,
                    fax: null,
                    id: "c6d7cb4deeac411cb3384b1b31278596",
                    isLeaf: false,
                    key: "c6d7cb4deeac411cb3384b1b31278596",
                    memo: null,
                    mobile: null,
                    orgCategory: "1",
                    orgCode: "A01",
                    orgType: "1",
                    parentId: "",
                    qywxIdentifier: "8",
                    status: null,
                    title: "北京国炬公司",
                    updateBy: "admin",
                    updateTime: "2021-05-20 17:30:42",
                    value: "c6d7cb4deeac411cb3384b1b31278596"
                },
                {
                    address: null,
                    children: [],
                    createBy: "admin",
                    createTime: "2021-11-04 17:58:53",
                    delFlag: "0",
                    departName: "启云互动",
                    departNameAbbr: null,
                    departNameEn: null,
                    departOrder: 0,
                    description: null,
                    fax: null,
                    id: "f4d5979edc1d4785ba2322f0b8200a21",
                    isLeaf: false,
                    key: "f4d5979edc1d4785ba2322f0b8200a21",
                    memo: null,
                    mobile: null,
                    orgCategory: "1",
                    orgCode: "A03",
                    orgType: "1",
                    parentId: "",
                    qywxIdentifier: null,
                    status: null,
                    title: "启云互动",
                    updateBy: null,
                    updateTime: null,
                    value: "f4d5979edc1d4785ba2322f0b8200a21"
                }
            ],
            success: true
        };
        resolve(data);
    })
}

/**
 * 加载子节点
 */
export function querySubDepartTree() {
    return new Promise(resolve => {
        let data = {
            code: 0,
            message: "",
            result:[
                          {
                                address: null,
                                children: [],
                                createBy: "admin",
                                createTime: "2019-02-26 16:36:47",
                                delFlag: "0",
                                departName: "项目核算部",
                                departNameAbbr: null,
                                departNameEn: null,
                                departOrder: 2,
                                description: null,
                                fax: null,
                                id: "a7d7e77e06c84325a40932163adcdaa6",
                                isLeaf: true,
                                key: "a7d7e77e06c84325a40932163adcdaa6",
                                memo: null,
                                mobile: null,
                                orgCategory: "2",
                                orgCode: "A02A01",
                                orgType: "2",
                                parentId: "6d35e179cd814e3299bd588ea7daed3f",
                                qywxIdentifier: "7",
                                status: null,
                                title: "项目核算部",
                                updateBy: "admin",
                                updateTime: "2021-11-04 16:50:57",
                                value: "a7d7e77e06c84325a40932163adcdaa6"
                            },
                  {
                    address: null,
                    children: [],
                    createBy: "admin",
                    createTime: "2019-02-26 16:44:38",
                    delFlag: "0",
                    departName: "项目研发部",
                    departNameAbbr: null,
                    departNameEn: null,
                    departOrder: 1,
                    description: null,
                    fax: null,
                    id: "5159cde220114246b045e574adceafe9",
                    isLeaf: false,
                    key: "5159cde220114246b045e574adceafe9",
                    memo: null,
                    mobile: null,
                    orgCategory: "1",
                    orgCode: "A02A02",
                    orgType: "2",
                    parentId: "6d35e179cd814e3299bd588ea7daed3f",
                    qywxIdentifier: "3",
                    status: null,
                    title: "项目研发部",
                    updateBy: "qinfeng",
                    updateTime: "2021-05-20 16:01:29",
                    value: "5159cde220114246b045e574adceafe9"
                  },
   
]
        };
        resolve(data);
    })
}



/**
 * 
 * @returns 已有用户列表
 */
export function querySelectedUserList() {
    return new Promise(resolve=>{
        let data = {
            code: 0,
            message: "",
            result:{
                countId: null,
                current: 1,
                maxLimit: null,
                optimizeCountSql: true,
                orders: [],
                pages: 1,
                searchCount: true,
                size: 10,
                total: 9,
                records: [
                    {
                        activitiSync: 1,
                        avatar: null,
                        birthday: null,
                        clientId: null,
                        createBy: "admin",
                        createTime: "2022-01-18 10:13:46",
                        delFlag: 0,
                        departIds: "",
                        email: null,
                        id: "1483261297964408833",
                        orgCode: null,
                        orgCodeTxt: "卓尔互动公司",
                        phone: "18754100072",
                        post: null,
                        realname: "lvdd",
                        relTenantIds: null,
                        sex: null,
                        status: 1,
                        status_dictText: "正常",
                        telephone: null,
                        updateBy: null,
                        updateTime: null,
                        userIdentity: 1,
                        username: "lvdd2",
                        workNo: "0012"
                    },
                    {
                        activitiSync: 1,
                        avatar: null,
                        birthday: null,
                        clientId: "b8c96a671415c92fd77072c17edff5bf",
                        createBy: "admin",
                        createTime: "2022-01-17 16:03:04",
                        delFlag: 0,
                        departIds: "",
                        email: null,
                        id: "1482986816528244737",
                        orgCode: "A01",
                        orgCodeTxt: "北京国炬公司",
                        phone: "15931993294",
                        post: "001",
                        post_dictText: "初级研发",
                        realname: "测试",
                        relTenantIds: "2",
                        sex: null,
                        status: 1,
                        status_dictText: "正常",
                        telephone: null,
                        updateBy: "sq",
                        updateTime: "2022-01-17 16:05:28",
                        userIdentity: 1,
                        username: "sq",
                        workNo: "TEST001"
                    },
                    {
                        activitiSync: 0,
                        avatar: null,
                        birthday: null,
                        clientId: null,
                        createBy: null,
                        createTime: "2022-01-16 17:23:20",
                        delFlag: 0,
                        departIds: null,
                        email: null,
                        id: "1482644628384571393",
                        orgCode: null,
                        orgCodeTxt: null,
                        phone: "14745279605",
                        post: null,
                        realname: "14745279605",
                        relTenantIds: null,
                        sex: null,
                        status: 1,
                        status_dictText: "正常",
                        telephone: null,
                        updateBy: null,
                        updateTime: null,
                        userIdentity: null,
                        username: "14745279605",
                        workNo: null
                    },
                    {
                        activitiSync: 1,
                        avatar: "http://minio.jeecg.com/otatest/temp/logo.d734fff1_1642157535545.png",
                        birthday: null,
                        clientId: null,
                        createBy: "admin",
                        createTime: "2022-01-14 18:52:18",
                        delFlag: 0,
                        departIds: "",
                        email: null,
                        id: "1481942239579004929",
                        orgCode: "A02",
                        orgCodeTxt: "卓尔互动公司",
                        phone: "18754100071",
                        post: null,
                        realname: "lvdd单",
                        relTenantIds: null,
                        sex: null,
                        status: 1,
                        status_dictText: "正常",
                        telephone: null,
                        updateBy: "admin",
                        updateTime: "2022-01-15 13:36:48",
                        userIdentity: 1,
                        username: "lvdd",
                        workNo: "0011"
                    },
                    {
                        activitiSync: 1,
                        avatar: "http://minio.jeecg.com/otatest/1642124632012_IMG_20211219_160839_1642124633311.jpg",
                        birthday: null,
                        clientId: "c67431a8316b005bc317ccd06676ccdc",
                        createBy: "admin",
                        createTime: "2022-01-14 09:32:19",
                        delFlag: 0,
                        departIds: "",
                        email: "123@qq.com",
                        id: "1481801314970136578",
                        orgCode: "A01A05",
                        orgCodeTxt: "研发部",
                        phone: "17610625547",
                        post: "",
                        realname: "ws测试",
                        relTenantIds: null,
                        sex: 1,
                        sex_dictText: "男",
                        status: 1,
                        status_dictText: "正常",
                        telephone: null,
                        updateBy: "ws",
                        updateTime: "2022-01-15 19:39:45",
                        userIdentity: 1,
                        username: "ws",
                        workNo: "001"
                    }
                ]
            }
        };
        resolve(data);
    })
}

/**
 * 
 * @returns  角色列表
 */
export function getRoleList() { 
    return new Promise(resolve => { 
        let data = {
            code: 0,
            message: "",
            result: {
                countId: null,
                current: 1,
                maxLimit: null,
                optimizeCountSql: true,
                orders: [],
                pages: 1,
                records: [
                    {
                        createBy: "admin",
                        createTime: "2021-11-04 15:45:26",
                        description: null,
                        id: "1456165677820301314",
                        roleCode: "vue3",
                        roleName: "VUE3角色",
                        updateBy: "admin",
                        updateTime: "2021-11-15 17:21:36",
                    },
                    {
                        createBy: "admin",
                        createTime: "2020-02-14 18:55:48",
                        description: null,
                        id: "1228271617437720577",
                        roleCode: "yq_caiji",
                        roleName: "疫情采集角色",
                        updateBy: null,
                        updateTime: null
                    },
                    {
                        createBy: "admin",
                        createTime: "2019-09-05 14:57:49",
                        description: "第三方登录角色",
                        id: "1169504891467464705",
                        roleCode: "third_role",
                        roleName: "第三方登录角色",
                        updateBy: "admin",
                        updateTime: "2019-09-05 14:57:56"
                    },
                    {
                        createBy: "admin",
                        createTime: "2019-01-21 18:07:24",
                        description: null,
                        id: "e51758fa916c881624b046d26bd09230",
                        roleCode: "hr",
                        roleName: "人力资源角色",
                        updateBy: "admin",
                        updateTime: "2020-03-22 18:29:24"
                    },
                    {
                        createBy: null,
                        createTime: "2018-12-21 18:03:39",
                        description: "管理员",
                        id: "f6817f48af4fb3af11b9e8bf182f618b",
                        roleCode: "admin",
                        roleName: "管理员",
                        updateBy: "admin",
                        updateTime: "2019-12-09 11:52:01"
                    },
                    {
                        createBy: null,
                        createTime: "2018-12-20 10:59:04",
                        description: "这是新建的临时角色123",
                        id: "ee8626f80f7c2619917b6236f3a7f02b",
                        roleCode: "test",
                        roleName: "临时角色",
                        updateBy: "admin",
                        updateTime: "2020-01-05 22:59:29"
                    }
                ],
                searchCount: true,
                size: 10,
                total: 6,
            },
            success: true
        };
        resolve(data);
    })
}

/**
 * 
 * @returns 角色用户列表
 */
export function getRoleUserList() { 
    return new Promise(resolve => { 
        let data = {
            code: 0,
            message: "",
            result: {
                countId: null,
                current: 1,
                maxLimit: null,
                optimizeCountSql: true,
                orders: [],
                pages: 1,
                records: [
                    {
                        activitiSync: 1,
                        avatar: "https://static.jeecg.com/temp/jmlogo_1606575041993.png",
                        birthday: null,
                        clientId: null,
                        createBy: "admin",
                        createTime: "2019-10-03 16:33:40",
                        delFlag: 0,
                        departIds: "57197590443c44f083d42ae24ef26a2c,2ea16c76c6e14d7d80e734af209916d3",
                        departIds_dictText: "研发部,研发一部(JEECG)",
                        email: "11111@163.com",
                        id: "1179675874431131649",
                        orgCode: "A01A04",
                        orgCodeTxt: null,
                        phone: "13426111111",
                        post: "leader",
                        post_dictText: "部门经理",
                        realname: "qinfeng",
                        relTenantIds: "",
                        sex: 1,
                        sex_dictText: "男",
                        status: 1,
                        status_dictText: "正常",
                        telephone: "",
                        updateBy: "admin",
                        updateTime: "2021-11-16 16:17:49",
                        userIdentity: 2,
                        username: "qinfeng",
                        workNo: "200"
                    },
                    {
                        activitiSync: 1,
                        avatar: "https://static.jeecg.com/temp/e1fe9925bc315c60addea1b98eb1cb1349547719_1594713625074.jpg",
                        birthday: "2018-12-05",
                        clientId: "b8c96a671415c92fd77072c17edff5bf",
                        createBy: null,
                        createTime: "2019-06-21 17:54:10",
                        delFlag: 0,
                        departIds: "",
                        email: "admin@jeecg.com",
                        id: "e9ca23d68d884d4ebb19d07889727dae",
                        orgCode: "A01",
                        orgCodeTxt: null,
                        phone: "15201111111",
                        post: "部门负责人1",
                        post_dictText: "部门负责人1",
                        realname: "管理员",
                        relTenantIds: "1,2",
                        sex: 1,
                        sex_dictText: "男",
                        status: 1,
                        status_dictText: "正常",
                        telephone: "",
                        updateBy: "admin",
                        updateTime: "2022-01-15 19:57:57",
                        userIdentity: 2,
                        username: "admin",
                        workNo: "A000"
                    }
                ]
            },
            success: true
        }
        resolve(data);
    })
}

/**
 *  列表
 */
export function getUserList() { 
    return new Promise((resolve) => { 
        let data = {
            code: 0,
            message: "",
            result: {
                countId: null,
                current: 1,
                maxLimit: null,
                optimizeCountSql: true,
                orders: [],
                pages: 1,
                records: [
                    {
                        activitiSync: 0,
                        avatar: null,
                        birthday: null,
                        clientId: null,
                        createBy: null,
                        createTime: "2021-12-23 17:35:25",
                        delFlag: 0,
                        departIds: null,
                        email: null,
                        id: "1473950360484732929",
                        orgCode: null,
                        orgCodeTxt: null,
                        phone: "15607021307",
                        post: null,
                        realname: "DongJeecg",
                        relTenantIds: null,
                        sex: null,
                        status: 1,
                        status_dictText: "正常",
                        telephone: null,
                        updateBy: null,
                        updateTime: null,
                        userIdentity: null,
                        username: "DongJeecg",
                        workNo: null,
                    },
                    {
                        activitiSync: 0,
                        avatar: null,
                        birthday: null,
                        clientId: null,
                        createBy: null,
                        createTime: "2021-12-21 09:39:42",
                        delFlag: 0,
                        departIds: null,
                        email: null,
                        id: "1473105866889650178",
                        orgCode: null,
                        orgCodeTxt: null,
                        phone: "18372733102",
                        post: null,
                        realname: "a123456",
                        relTenantIds: null,
                        sex: null,
                        status: 1,
                        status_dictText: "正常",
                        telephone: null,
                        updateBy: null,
                        updateTime: null,
                        userIdentity: null,
                        username: "a123456",
                        workNo: null
                    },
                    {
                        activitiSync: 0,
                        avatar: null,
                        birthday: null,
                        clientId: null,
                        createBy: null,
                        createTime: "2021-12-20 10:03:45",
                        delFlag: 0,
                        departIds: null,
                        email: null,
                        id: "1472749528992997378",
                        orgCode: null,
                        orgCodeTxt: null,
                        phone: "15581655008",
                        post: null,
                        realname: "15581655008",
                        relTenantIds: null,
                        sex: null,
                        status: 1,
                        status_dictText: "正常",
                        telephone: null,
                        updateBy: null,
                        updateTime: null,
                        userIdentity: null,
                        username: "15581655008",
                        workNo: null
                    },
                    {
                        activitiSync: 0,
                        avatar: null,
                        birthday: null,
                        clientId: null,
                        createBy: null,
                        createTime: "2021-12-03 09:38:02",
                        delFlag: 0,
                        departIds: null,
                        email: null,
                        id: "1466582462636244994",
                        orgCode: null,
                        orgCodeTxt: null,
                        phone: "13487023121",
                        post: null,
                        realname: "13487023121",
                        relTenantIds: null,
                        sex: null,
                        status: 1,
                        status_dictText: "正常",
                        telephone: null,
                        updateBy: null,
                        updateTime: null,
                        userIdentity: null,
                        username: "13487023121",
                        workNo: null
                    }
                ]
            },
            success: true
        }
        resolve(data)
    })
}

/**
 * 菜单列表
 */
export function getSystemMenuList() {
    return new Promise((resolve)=>{
        let data = {
            code: 0,
            message: "",
            result: [
                // {
                //     alwaysShow: false,
                //     children: null,
                //     component: "dashboard/Analysis",
                //     createBy: null,
                //     createTime: "2018-12-25 20:34:38",
                //     delFlag: 0,
                //     description: null,
                //     hidden: false,
                //     icon: "home",
                //     id: "9502685863ab87f0ad1134142788a385",
                //     internalOrExternal: false,
                //     isLeaf: true,
                //     keepAlive: true,
                //     key: "9502685863ab87f0ad1134142788a385",
                //     leaf: true,
                //     menuType: 0,
                //     name: "首页",
                //     parentId: "",
                //     perms: null,
                //     permsType: null,
                //     redirect: null,
                //     route: true,
                //     sortNo: 0,
                //     status: null,
                //     title: "首页",
                //     updateBy: "admin",
                //     updateTime: "2020-02-26 18:40:35",
                //     url: "/dashboard/analysis"
                // },
                {
                    alwaysShow: false,
                    children: [],
                    component: "layouts/RouteView",
                    createBy: null,
                    createTime: "2018-12-25 20:34:38",
                    delFlag: 0,
                    description: null,
                    hidden: false,
                    icon: "setting",
                    id: "d7d6e2e4e2934f2c9385a623fd98c6f3",
                    internalOrExternal: false,
                    isLeaf: false,
                    keepAlive: false,
                    key: "d7d6e2e4e2934f2c9385a623fd98c6f3",
                    leaf: false,
                    menuType: 0,
                    name: "系统管理",
                    parentId: "",
                    perms: null,
                    permsType: null,
                    redirect: null,
                    route: true,
                    sortNo: 5,
                    status: null,
                    title: "系统管理",
                    updateBy: "admin",
                    updateTime: "2019-09-25 11:29:18",
                    url: "/isystem"
                }
            ],
            success: true
        };
        resolve(data);
    })
}
/**
 * 获取子菜单列表
 */
 export function getSystemSubmenu() {
     return new Promise((resolve)=>{
        let data = {
            code: 0,
            message: '',
            result: [
                {
                    alwaysShow: false,
                    children: null,
                    component: "system/UserList",
                    createBy: null,
                    createTime: "2018-12-25 20:34:38",
                    delFlag: 0,
                    description: null,
                    hidden: false,
                    icon: null,
                    id: "3f915b2769fc80648e92d04e84ca059d",
                    internalOrExternal: false,
                    isLeaf: true,
                    keepAlive: false,
                    key: "3f915b2769fc80648e92d04e84ca059d",
                    leaf: true,
                    menuType: 1,
                    name: "用户管理",
                    parentId: "d7d6e2e4e2934f2c9385a623fd98c6f3",
                    perms: null,
                    permsType: null,
                    redirect: null,
                    route: true,
                    sortNo: 1,
                    status: null,
                    title: "用户管理",
                    updateBy: "admin",
                    updateTime: "2020-03-02 10:39:01",
                    url: "/isystem/user"
                },
                {
                    alwaysShow: false,
                    children: null,
                    component: "system/NewPermissionList",
                    createBy: "admin",
                    createTime: "2019-09-08 15:00:05",
                    delFlag: 0,
                    description: null,
                    hidden: false,
                    icon: null,
                    id: "1170592628746878978",
                    internalOrExternal: false,
                    isLeaf: true,
                    keepAlive: true,
                    key: "1170592628746878978",
                    leaf: true,
                    menuType: 1,
                    name: "菜单管理",
                    parentId: "d7d6e2e4e2934f2c9385a623fd98c6f3",
                    perms: null,
                    permsType: "1",
                    redirect: null,
                    route: true,
                    sortNo: 2,
                    status: "1",
                    title: "菜单管理",
                    updateBy: "admin",
                    updateTime: "2019-11-28 22:10:14",
                    url: "/isystem/newPermissionList",
                },
                {
                    alwaysShow: false,
                    children: null,
                    component: "system/RoleUserList",
                    createBy: "admin",
                    createTime: "2019-04-17 15:13:56",
                    delFlag: 0,
                    description: null,
                    hidden: false,
                    icon: null,
                    id: "190c2b43bec6a5f7a4194a85db67d96a",
                    internalOrExternal: false,
                    isLeaf: true,
                    keepAlive: true,
                    key: "190c2b43bec6a5f7a4194a85db67d96a",
                    leaf: true,
                    menuType: 1,
                    name: "角色管理",
                    parentId: "d7d6e2e4e2934f2c9385a623fd98c6f3",
                    perms: null,
                    permsType: null,
                    redirect: null,
                    route: true,
                    sortNo: 2,
                    status: null,
                    title: "角色管理",
                    updateBy: "admin",
                    updateTime: "2019-12-25 16:11:15",
                    url: "/isystem/roleUserList"
                },
                {
                    alwaysShow: false,
                    children: null,
                    component: "system/TenantList",
                    createBy: "admin",
                    createTime: "2020-07-07 11:58:30",
                    delFlag: 0,
                    description: null,
                    hidden: false,
                    icon: null,
                    id: "1280350452934307841",
                    internalOrExternal: false,
                    isLeaf: true,
                    keepAlive: false,
                    key: "1280350452934307841",
                    leaf: true,
                    menuType: 1,
                    name: "租户管理",
                    parentId: "d7d6e2e4e2934f2c9385a623fd98c6f3",
                    perms: null,
                    permsType: "1",
                    redirect: null,
                    route: true,
                    sortNo: 2.1,
                    status: "1",
                    title: "租户管理",
                    updateBy: "admin",
                    updateTime: "2021-08-16 15:39:27",
                    url: "/isys/tenant"
                },
                {
                    alwaysShow: false,
                    children: null,
                    component: "system/DepartListSync",
                    createBy: "admin",
                    createTime: "2019-01-29 18:47:40",
                    delFlag: 0,
                    description: null,
                    hidden: false,
                    icon: null,
                    id: "45c966826eeff4c99b8f8ebfe74511fc",
                    internalOrExternal: false,
                    isLeaf: true,
                    keepAlive: false,
                    key: "45c966826eeff4c99b8f8ebfe74511fc",
                    leaf: true,
                    menuType: 1,
                    name: "部门管理",
                    parentId: "d7d6e2e4e2934f2c9385a623fd98c6f3",
                    perms: null,
                    permsType: null,
                    redirect: null,
                    route: true,
                    sortNo: 3,
                    status: null,
                    title: "部门管理",
                    updateBy: "admin",
                    updateTime: "2020-02-20 15:50:59",
                    url: "/isystem/depart"
                },
                {
                    alwaysShow: false,
                    children: null,
                    component: "system/DepartUserList",
                    createBy: "admin",
                    createTime: "2019-04-17 15:12:24",
                    delFlag: 0,
                    description: null,
                    hidden: false,
                    icon: null,
                    id: "5c2f42277948043026b7a14692456828",
                    internalOrExternal: false,
                    isLeaf: true,
                    keepAlive: false,
                    key: "5c2f42277948043026b7a14692456828",
                    leaf: true,
                    menuType: 1,
                    name: "我的部门",
                    parentId: "d7d6e2e4e2934f2c9385a623fd98c6f3",
                    perms: null,
                    permsType: null,
                    redirect: null,
                    route: true,
                    sortNo: 3.1,
                    status: null,
                    title: "我的部门",
                    updateBy: "admin",
                    updateTime: "2019-12-25 16:13:42",
                    url: "/isystem/departUserList"
                },
                {
                    alwaysShow: false,
                    children: null,
                    component: "system/SysPositionList",
                    createBy: "admin",
                    createTime: "2019-09-19 10:14:13",
                    delFlag: 0,
                    description: null,
                    hidden: false,
                    icon: null,
                    id: "1174506953255182338",
                    internalOrExternal: false,
                    isLeaf: true,
                    keepAlive: false,
                    key: "1174506953255182338",
                    leaf: true,
                    menuType: 1,
                    name: "职务管理",
                    parentId: "d7d6e2e4e2934f2c9385a623fd98c6f3",
                    perms: null,
                    permsType: "1",
                    redirect: null,
                    route: true,
                    sortNo: 3.2,
                    status: "1",
                    title: "职务管理",
                    updateBy: "admin",
                    updateTime: "2019-12-25 16:14:06",
                    url: "/isystem/position"
                },
                {
                    alwaysShow: false,
                    children: null,
                    component: "system/DictList",
                    createBy: null,
                    createTime: "2018-12-28 13:54:43",
                    delFlag: 0,
                    description: null,
                    hidden: false,
                    icon: null,
                    id: "f1cb187abf927c88b89470d08615f5ac",
                    internalOrExternal: false,
                    isLeaf: true,
                    keepAlive: false,
                    key: "f1cb187abf927c88b89470d08615f5ac",
                    leaf: true,
                    menuType: 1,
                    name: "数据字典",
                    parentId: "d7d6e2e4e2934f2c9385a623fd98c6f3",
                    perms: null,
                    permsType: null,
                    redirect: null,
                    route: true,
                    sortNo: 5,
                    status: null,
                    title: "数据字典",
                    updateBy: "admin",
                    updateTime: "2020-02-20 15:50:33",
                    url: "/isystem/dict"
                },
                {
                    alwaysShow: false,
                    children: null,
                    component: "system/SysCategoryList",
                    createBy: "admin",
                    createTime: "2019-05-29 18:48:07",
                    delFlag: 0,
                    description: null,
                    hidden: false,
                    icon: null,
                    id: "ebb9d82ea16ad864071158e0c449d186",
                    internalOrExternal: false,
                    isLeaf: true,
                    keepAlive: false,
                    key: "ebb9d82ea16ad864071158e0c449d186",
                    leaf: true,
                    menuType: 1,
                    name: "分类字典",
                    parentId: "d7d6e2e4e2934f2c9385a623fd98c6f3",
                    perms: null,
                    permsType: "1",
                    redirect: null,
                    route: true,
                    sortNo: 5.2,
                    status: "1",
                    title: "分类字典",
                    updateBy: "admin",
                    updateTime: "2020-02-20 15:50:43",
                    url: "/isys/category"
                },
                {
                    alwaysShow: false,
                    children: null,
                    component: "system/SysAnnouncementList",
                    createBy: null,
                    createTime: "2019-01-02 17:23:01",
                    delFlag: 0,
                    description: null,
                    hidden: false,
                    icon: "",
                    id: "e08cb190ef230d5d4f03824198773950",
                    internalOrExternal: false,
                    isLeaf: true,
                    keepAlive: false,
                    key: "e08cb190ef230d5d4f03824198773950",
                    leaf: true,
                    menuType: 1,
                    name: "系统通告",
                    parentId: "d7d6e2e4e2934f2c9385a623fd98c6f3",
                    perms: "annountCement",
                    permsType: null,
                    redirect: null,
                    route: true,
                    sortNo: 6,
                    status: null,
                    title: "系统通告",
                    updateBy: null,
                    updateTime: "2019-01-02 17:31:23",
                    url: "/isystem/annountCement"
                },
                {
                    alwaysShow: false,
                    children: null,
                    component: "system/PermissionList",
                    createBy: null,
                    createTime: "2018-12-25 20:34:38",
                    delFlag: 0,
                    description: null,
                    hidden: false,
                    icon: null,
                    id: "54dd5457a3190740005c1bfec55b1c34",
                    internalOrExternal: false,
                    isLeaf: true,
                    keepAlive: false,
                    key: "54dd5457a3190740005c1bfec55b1c34",
                    leaf: true,
                    menuType: 1,
                    name: "菜单管理2",
                    parentId: "d7d6e2e4e2934f2c9385a623fd98c6f3",
                    perms: null,
                    permsType: null,
                    redirect: null,
                    route: true,
                    sortNo: 11,
                    status: null,
                    title: "菜单管理2",
                    updateBy: "admin",
                    updateTime: "2019-12-25 16:10:42",
                    url: "/isystem/permission"
                },
                {
                    alwaysShow: false,
                    children: null,
                    component: "system/RoleList",
                    createBy: null,
                    createTime: "2018-12-25 20:34:38",
                    delFlag: 0,
                    description: null,
                    hidden: false,
                    icon: null,
                    id: "e8af452d8948ea49d37c934f5100ae6a",
                    internalOrExternal: false,
                    isLeaf: true,
                    keepAlive: true,
                    key: "e8af452d8948ea49d37c934f5100ae6a",
                    leaf: true,
                    menuType: 1,
                    name: "角色管理2",
                    parentId: "d7d6e2e4e2934f2c9385a623fd98c6f3",
                    perms: null,
                    permsType: null,
                    redirect: null,
                    route: true,
                    sortNo: 11,
                    status: null,
                    title: "角色管理2",
                    updateBy: "admin",
                    updateTime: "2019-12-25 16:11:03",
                    url: "/isystem/role"
                }
            ],
            success: true
        };
        resolve(data);
     })
}
 

/**
 * 
 * @returns 部门权限树
 */
 export function queryTreeList() {
    return new Promise(resolve => { 
        let data = {
            success: true,
            message: "",
            code: 0,
            result: 
                {
                    treeList: [
                        {
                            children: null,
                            icon: null,
                            isLeaf: true,
                            key: "9502685863ab87f0ad1134142788a385",
                            label: null,
                            parentId: "",
                            ruleFlag: 0,
                            scopedSlots: {title: "hasDatarule"},
                            slotTitle: "首页",
                            title: null,
                            value: "9502685863ab87f0ad1134142788a385"
                        },
                        {
                            children: [
                                {
                                    children: null,
                                    icon: null,
                                    isLeaf: true,
                                    key: "1939e035e803a99ceecb6f5563570fb2",
                                    label: null,
                                    parentId: "baf16b7174bd821b6bab23fa9abb200d",
                                    ruleFlag: 0,
                                    scopedSlots: {title: "hasDatarule"},
                                    slotTitle: "我的任务",
                                    title: null,
                                    value: "1939e035e803a99ceecb6f5563570fb2"
                                },
                                {
                                    children: null,
                                    icon: null,
                                    isLeaf: true,
                                    key: "abd50036ff42f0a9943ace7eb63c63b6",
                                    label: null,
                                    parentId: "baf16b7174bd821b6bab23fa9abb200d",
                                    ruleFlag: 0,
                                    scopedSlots: {title: "hasDatarule"},
                                    slotTitle: "我发起流程",
                                    title: null,
                                    value: "abd50036ff42f0a9943ace7eb63c63b6"
                                },
                                {
                                    children: null,
                                    icon: null,
                                    isLeaf: true,
                                    key: "e4335a37647952a691fd609ee6f92168",
                                    label: null,
                                    parentId: "baf16b7174bd821b6bab23fa9abb200d",
                                    ruleFlag: 0,
                                    scopedSlots: {title: "hasDatarule"},
                                    slotTitle: "我的抄送",
                                    title: null,
                                    value: "e4335a37647952a691fd609ee6f92168"
                                }
                            ],
                            icon: null,
                            isLeaf: false,
                            key: "baf16b7174bd821b6bab23fa9abb200d",
                            label: null,
                            parentId: "",
                            ruleFlag: 0,
                            scopedSlots: {title: "hasDatarule"},
                            slotTitle: "个人办公",
                            title: null,
                            value: "baf16b7174bd821b6bab23fa9abb200d"
                        },
                        {
                            icon: null,
                            isLeaf: false,
                            key: "09e7db25b4555332333f83afdadc7897",
                            label: null,
                            parentId: "",
                            ruleFlag: 0,
                            scopedSlots: {title: "hasDatarule"},
                            slotTitle: "OA办公",
                            title: null,
                            value: "09e7db25b4555332333f83afdadc7897",
                            children: [
                                {
                                    children: null,
                                    icon: null,
                                    isLeaf: true,
                                    key: "cab5a60d58871cff3d5858e4d2580a26",
                                    label: null,
                                    parentId: "09e7db25b4555332333f83afdadc7897",
                                    ruleFlag: 0,
                                    scopedSlots: {title: "hasDatarule"},
                                    slotTitle: "工单申请",
                                    title: null,
                                    value: "cab5a60d58871cff3d5858e4d2580a26"
                                },
                                {
                                    children: null,
                                    icon: null,
                                    isLeaf: true,
                                    key: "2ea33825c6b365607b9ff04f3362bdda",
                                    label: null,
                                    parentId: "09e7db25b4555332333f83afdadc7897",
                                    ruleFlag: 0,
                                    scopedSlots: {title: "hasDatarule"},
                                    slotTitle: "工单查看更多",
                                    title: null,
                                    value: "2ea33825c6b365607b9ff04f3362bdda"
                                },
                                {
                                    children: null,
                                    icon: null,
                                    isLeaf: true,
                                    key: "bae8992dc6f39b1736d65ef251fa68c2",
                                    label: null,
                                    parentId: "09e7db25b4555332333f83afdadc7897",
                                    ruleFlag: 0,
                                    scopedSlots: {title: "hasDatarule"},
                                    slotTitle: "我的工单",
                                    title: null,
                                    value: "bae8992dc6f39b1736d65ef251fa68c2"
                                },
                                {
                                    children: null,
                                    icon: null,
                                    isLeaf: true,
                                    key: "1215097609505517569",
                                    label: null,
                                    parentId: "09e7db25b4555332333f83afdadc7897",
                                    ruleFlag: 0,
                                    scopedSlots: {title: "hasDatarule"},
                                    slotTitle: "工单查询",
                                    title: null,
                                    value: "1215097609505517569"
                                }
                            ]
                        }
                       
                    ]
                }
            
        };
        resolve(data);
    })
}

/**
 * 我的部门列表
 */
export function queryMyDepartTreeList() { 
    return new Promise(resolve => { 
        let data = {
            code: 0,
            message: "2",
            result: [
                {
                    address: null,
                    createBy: "admin",
                    createTime: "2019-02-11 14:21:51",
                    delFlag: "0",
                    departName: "北京国炬公司",
                    departNameAbbr: null,
                    departNameEn: null,
                    departOrder: 0,
                    description: null,
                    fax: null,
                    id: "c6d7cb4deeac411cb3384b1b31278596",
                    isLeaf: false,
                    key: "c6d7cb4deeac411cb3384b1b31278596",
                    memo: null,
                    mobile: null,
                    orgCategory: "1",
                    orgCode: "A01",
                    orgType: "1",
                    parentId: null,
                    qywxIdentifier: "8",
                    status: null,
                    title: "北京国炬公司",
                    updateBy: "admin",
                    updateTime: "2021-05-20 17:30:42",
                    value: "c6d7cb4deeac411cb3384b1b31278596",
                    children: [
                        {
                            address: null,
                            children: null,
                            createBy: "admin",
                            createTime: "2021-05-20 16:08:08",
                            delFlag: "0",
                            departName: "航天部门",
                            departNameAbbr: null,
                            departNameEn: null,
                            departOrder: 0,
                            description: null,
                            fax: null,
                            id: "1e8b94aeeb134a978e6939c7325d77d5",
                            isLeaf: true,
                            key: "1e8b94aeeb134a978e6939c7325d77d5",
                            memo: null,
                            mobile: null,
                            orgCategory: "2",
                            orgCode: "A01A08",
                            orgType: "2",
                            parentId: "c6d7cb4deeac411cb3384b1b31278596",
                            qywxIdentifier: "22",
                            status: null,
                            title: "航天部门",
                            updateBy: "admin",
                            updateTime: "2021-05-20 16:08:17",
                            value: "1e8b94aeeb134a978e6939c7325d77d5"
                        },
                        {
                            address: null,
                            createBy: "admin",
                            createTime: "2019-02-21 16:14:41",
                            delFlag: "0",
                            departName: "研发部",
                            departNameAbbr: null,
                            departNameEn: null,
                            departOrder: 0,
                            description: null,
                            fax: null,
                            id: "57197590443c44f083d42ae24ef26a2c",
                            isLeaf: false,
                            key: "57197590443c44f083d42ae24ef26a2c",
                            memo: null,
                            mobile: null,
                            orgCategory: "1",
                            orgCode: "A01A05",
                            orgType: "2",
                            parentId: "c6d7cb4deeac411cb3384b1b31278596",
                            qywxIdentifier: "11",
                            status: null,
                            title: "研发部",
                            updateBy: "qinfeng",
                            updateTime: "2021-05-20 16:01:30",
                            value: "57197590443c44f083d42ae24ef26a2c",
                            children: [
                                {
                                    address: null,
                                    children: null,
                                    createBy: "admin",
                                    createTime: "2020-02-20 15:25:46",
                                    delFlag: "0",
                                    departName: "研发一部(JEECG)",
                                    departNameAbbr: null,
                                    departNameEn: null,
                                    departOrder: 0,
                                    description: null,
                                    fax: null,
                                    id: "2ea16c76c6e14d7d80e734af209916d3",
                                    isLeaf: true,
                                    key: "2ea16c76c6e14d7d80e734af209916d3",
                                    memo: null,
                                    mobile: null,
                                    orgCategory: "2",
                                    orgCode: "A01A05A01",
                                    orgType: "3",
                                    parentId: "57197590443c44f083d42ae24ef26a2c",
                                    qywxIdentifier: "12",
                                    status: null,
                                    title: "研发一部(JEECG)",
                                    updateBy: "qinfeng",
                                    updateTime: "2021-05-20 16:01:30",
                                    value: "2ea16c76c6e14d7d80e734af209916d3"
                                },
                                {
                                    address: null,
                                    children: null,
                                    createBy: "admin",
                                    createTime: "2020-02-20 15:26:07",
                                    delFlag: "0",
                                    departName: "项目研发部",
                                    departNameAbbr: null,
                                    departNameEn: null,
                                    departOrder: 0,
                                    description: null,
                                    fax: null,
                                    id: "c07bec77bb7c499b97f06ca660928bb7",
                                    isLeaf: true,
                                    key: "c07bec77bb7c499b97f06ca660928bb7",
                                    memo: null,
                                    mobile: null,
                                    orgCategory: "2",
                                    orgCode: "A01A05A03",
                                    orgType: "3",
                                    parentId: "57197590443c44f083d42ae24ef26a2c",
                                    qywxIdentifier: "13",
                                    status: null,
                                    title: "项目研发部",
                                    updateBy: "qinfeng",
                                    updateTime: "2021-05-20 16:01:30",
                                    value: "c07bec77bb7c499b97f06ca660928bb7"
                                },
                                {
                                    address: null,
                                    children: null,
                                    createBy: "admin",
                                    createTime: "2020-02-20 15:25:58",
                                    delFlag: "0",
                                    departName: "研发二部(JEEWX)",
                                    departNameAbbr: null,
                                    departNameEn: null,
                                    departOrder: 0,
                                    description: null,
                                    fax: null,
                                    id: "c9169e0d610341bcb3447be88e7a309e",
                                    isLeaf: true,
                                    key: "c9169e0d610341bcb3447be88e7a309e",
                                    memo: null,
                                    mobile: null,
                                    orgCategory: "2",
                                    orgCode: "A01A05A02",
                                    orgType: "3",
                                    parentId: "57197590443c44f083d42ae24ef26a2c",
                                    qywxIdentifier: "14",
                                    status: null,
                                    title: "研发二部(JEEWX)",
                                    updateBy: "qinfeng",
                                    updateTime: "2021-05-20 16:01:30",
                                    value: "c9169e0d610341bcb3447be88e7a309e"
                                }
                            ]
                        },
                        {
                            address: null,
                            children: [],
                            createBy: "admin",
                            createTime: "2019-02-21 16:14:35",
                            delFlag: "0",
                            departName: "财务部",
                            departNameAbbr: null,
                            departNameEn: null,
                            departOrder: 0,
                            description: null,
                            fax: null,
                            id: "67fc001af12a4f9b8458005d3f19934a",
                            isLeaf: false,
                            key: "67fc001af12a4f9b8458005d3f19934a",
                            memo: null,
                            mobile: null,
                            orgCategory: "1",
                            orgCode: "A01A04",
                            orgType: "2",
                            parentId: "c6d7cb4deeac411cb3384b1b31278596",
                            qywxIdentifier: "15",
                            status: null,
                            title: "财务部",
                            updateBy: "qinfeng",
                            updateTime: "2021-05-20 16:01:30",
                            value: "67fc001af12a4f9b8458005d3f19934a"
                        },
                        {
                            address: null,
                            children: [],
                            createBy: "admin",
                            createTime: "2020-08-28 11:18:47",
                            delFlag: "0",
                            departName: "市场部",
                            departNameAbbr: null,
                            departNameEn: null,
                            departOrder: 0,
                            description: null,
                            fax: null,
                            id: "f90aa53005ca4e138e21adacd18851b5",
                            isLeaf: false,
                            key: "f90aa53005ca4e138e21adacd18851b5",
                            memo: null,
                            mobile: null,
                            orgCategory: "2",
                            orgCode: "A01A06",
                            orgType: "2",
                            parentId: "c6d7cb4deeac411cb3384b1b31278596",
                            qywxIdentifier: "18",
                            status: null,
                            title: "市场部",
                            updateBy: "qinfeng",
                            updateTime: "2021-05-20 16:01:31",
                            value: "f90aa53005ca4e138e21adacd18851b5"
                        }
                    ]
                }
            ],
            success: true
        };
        resolve(data);
    })
}

export function queryDeptUserList() {
    return new Promise(resolve => {
        let data = {
            code: 0,
            message: "",
            result: 
                {
                    countId: null,
                    current: 1,
                    maxLimit: null,
                    optimizeCountSql: true,
                    orders: [],
                    pages: 1,
                    searchCount: true,
                    size: 10,
                    total: 5,
                    records: [
                        {
                            activitiSync: 1,
                            avatar: "https://static.jeecg.com/temp/jmlogo_1606575041993.png",
                            birthday: null,
                            clientId: null,
                            createBy: "admin",
                            createTime: "2019-10-03 16:33:40",
                            delFlag: 0,
                            departIds: "57197590443c44f083d42ae24ef26a2c,2ea16c76c6e14d7d80e734af209916d3",
                            departIds_dictText: "研发部,研发一部(JEECG)",
                            email: "11111@163.com",
                            id: "1179675874431131649",
                            orgCode: "研发一部(JEECG),财务,研发部,财务部",
                            orgCodeTxt: null,
                            phone: "13426111111",
                            post: "leader",
                            post_dictText: "部门经理",
                            realname: "qinfeng",
                            relTenantIds: "",
                            sex: 1,
                            sex_dictText: "男",
                            status: 1,
                            status_dictText: "正常",
                            telephone: "",
                            updateBy: "admin",
                            updateTime: "2021-11-16 16:17:49",
                            userIdentity: 2,
                            username: "qinfeng",
                            workNo: "200"
                        },
                        {
                            activitiSync: 1,
                            avatar: "http://minio.jeecg.com/otatest/1642124632012_IMG_20211219_160839_1642124633311.jpg",
                            birthday: null,
                            clientId: "c67431a8316b005bc317ccd06676ccdc",
                            createBy: "admin",
                            createTime: "2022-01-14 09:32:19",
                            delFlag: 0,
                            departIds: "",
                            email: "123@qq.com",
                            id: "1481801314970136578",
                            orgCode: "研发部",
                            orgCodeTxt: null,
                            phone: "17610625547",
                            post: "",
                            realname: "ws测试",
                            relTenantIds: null,
                            sex: 1,
                            sex_dictText: "男",
                            status: 1,
                            status_dictText: "正常",
                            telephone: null,
                            updateBy: "admin",
                            updateTime: "2022-01-20 10:46:19",
                            userIdentity: 1,
                            username: "ws",
                            workNo: "001"
                        },
                        {
                            activitiSync: 1,
                            avatar: null,
                            birthday: null,
                            clientId: "b8c96a671415c92fd77072c17edff5bf",
                            createBy: "admin",
                            createTime: "2022-01-17 16:03:04",
                            delFlag: 0,
                            departIds: "",
                            email: null,
                            id: "1482986816528244737",
                            orgCode: "北京国炬公司",
                            orgCodeTxt: null,
                            phone: "15931993294",
                            post: "001",
                            post_dictText: "初级研发",
                            realname: "测试",
                            relTenantIds: "2",
                            sex: null,
                            status: 1,
                            status_dictText: "正常",
                            telephone: null,
                            updateBy: "sq",
                            updateTime: "2022-01-18 19:06:33",
                            userIdentity: 1,
                            username: "sq",
                            workNo: "TEST001"
                        },
                        {
                            activitiSync: 1,
                            avatar: "https://static.jeecg.com/temp/国炬软件logo_1606575029126.png",
                            birthday: null,
                            clientId: "c67431a8316b005bc317ccd06676ccdc",
                            createBy: "admin",
                            createTime: "2019-02-13 16:02:36",
                            delFlag: 0,
                            departIds: "c6d7cb4deeac411cb3384b1b31278596",
                            departIds_dictText: "北京国炬公司",
                            email: "jeecgos@163.com",
                            id: "a75d45a015c44384a04449ee80dc3503",
                            orgCode: "北京国炬公司",
                            orgCodeTxt: null,
                            phone: "18611788525",
                            post: "ha110",
                            post_dictText: "哈喽",
                            realname: "JEECG用户",
                            relTenantIds: "2",
                            sex: 1,
                            sex_dictText: "男",
                            status: 1,
                            status_dictText: "正常",
                            telephone: "",
                            updateBy: "jeecg",
                            updateTime: "2022-01-19 18:53:01",
                            userIdentity: 2,
                            username: "jeecg",
                            workNo: "A002"
                        },
                        {
                            activitiSync: 1,
                            avatar: "https://static.jeecg.com/temp/e1fe9925bc315c60addea1b98eb1cb1349547719_1594713625074.jpg",
                            birthday: "2018-12-05",
                            clientId: "b8c96a671415c92fd77072c17edff5bf",
                            createBy: null,
                            createTime: "2019-06-21 17:54:10",
                            delFlag: 0,
                            departIds: "",
                            email: "admin@jeecg.com",
                            id: "e9ca23d68d884d4ebb19d07889727dae",
                            orgCode: "卓尔互动公司,北京国炬公司",
                            orgCodeTxt: null,
                            phone: "15201111111",
                            post: "部门负责人1",
                            post_dictText: "部门负责人1",
                            realname: "管理员",
                            relTenantIds: "1,2",
                            sex: 1,
                            sex_dictText: "男",
                            status: 1,
                            status_dictText: "正常",
                            telephone: "",
                            updateBy: "admin",
                            updateTime: "2022-01-17 19:20:47",
                            userIdentity: 2,
                            username: "admin",
                            workNo: "A000"
                        }
                    ]
                }
                
        };
        resolve(data);
    })
}


/**
 * 已有用户列表
 */
export function queryUserList() {
    return new Promise(resolve => {
        let data = {
            code: 0,
            message: "",
            result: {
                countId: null,
                current: 1,
                maxLimit: null,
                optimizeCountSql: true,
                orders: [],
                pages: 1,
                records: [
                    {
                        activitiSync: 1,
                        avatar: null,
                        birthday: null,
                        clientId: null,
                        createBy: "admin",
                        createTime: "2022-01-18 10:13:46",
                        delFlag: 0,
                        departIds: "",
                        email: null,
                        id: "1483261297964408833",
                        orgCode: null,
                        orgCodeTxt: "卓尔互动公司",
                        phone: "18754100072",
                        post: null,
                        realname: "lvdd",
                        relTenantIds: null,
                        sex: null,
                        status: 1,
                        status_dictText: "正常",
                        telephone: null,
                        updateBy: null,
                        updateTime: null,
                        userIdentity: 1,
                        username: "lvdd2",
                        workNo: "0012"
                    },
                    {
                        activitiSync: 1,
                        avatar: null,
                        birthday: null,
                        clientId: "b8c96a671415c92fd77072c17edff5bf",
                        createBy: "admin",
                        createTime: "2022-01-17 16:03:04",
                        delFlag: 0,
                        departIds: "",
                        email: null,
                        id: "1482986816528244737",
                        orgCode: "A01",
                        orgCodeTxt: "北京国炬公司",
                        phone: "15931993294",
                        post: "001",
                        post_dictText: "初级研发",
                        realname: "测试",
                        relTenantIds: "2",
                        sex: null,
                        status: 1,
                        status_dictText: "正常",
                        telephone: null,
                        updateBy: "sq",
                        updateTime: "2022-01-18 19:06:33",
                        userIdentity: 1,
                        username: "sq",
                        workNo: "TEST001"
                    },
                    {
                        activitiSync: 0,
                        avatar: null,
                        birthday: null,
                        clientId: null,
                        createBy: null,
                        createTime: "2022-01-16 17:23:20",
                        delFlag: 0,
                        departIds: null,
                        email: null,
                        id: "1482644628384571393",
                        orgCode: null,
                        orgCodeTxt: null,
                        phone: "14745279605",
                        post: null,
                        realname: "14745279605",
                        relTenantIds: null,
                        sex: null,
                        status: 1,
                        status_dictText: "正常",
                        telephone: null,
                        updateBy: null,
                        updateTime: null,
                        userIdentity: null,
                        username: "14745279605",
                        workNo: null
                    },
                    {
                        activitiSync: 1,
                        avatar: "http://minio.jeecg.com/otatest/temp/logo.d734fff1_1642157535545.png",
                        birthday: null,
                        clientId: null,
                        createBy: "admin",
                        createTime: "2022-01-14 18:52:18",
                        delFlag: 0,
                        departIds: "",
                        email: null,
                        id: "1481942239579004929",
                        orgCode: "A02",
                        orgCodeTxt: "卓尔互动公司",
                        phone: "18754100071",
                        post: null,
                        realname: "lvdd单",
                        relTenantIds: null,
                        sex: null,
                        status: 1,
                        status_dictText: "正常",
                        telephone: null,
                        updateBy: "admin",
                        updateTime: "2022-01-15 13:36:48",
                        userIdentity: 1,
                        username: "lvdd",
                        workNo: "0011"
                    }
                ]
            },
            success: true
        };
        resolve(data);
    })
}

/**
 * 部门角色列表
 */
export function queryRoleList() {
    return new Promise(resolve => {
        let data = {
            code: 200,
            message: "",
            result: {
                countId: null,
                current: 1,
                maxLimit: null,
                optimizeCountSql: true,
                orders: [],
                pages: 1,
                records: [
                    {
                        createBy: "admin",
                        createTime: "2021-11-04 16:59:13",
                        departId: "c6d7cb4deeac411cb3384b1b31278596",
                        departId_dictText: "北京国炬公司",
                        description: null,
                        id: "1456184242103463938",
                        roleCode: "asdf",
                        roleName: "sfda",
                        updateBy: null,
                        updateTime: null
                    },
                    {
                        createBy: "admin",
                        createTime: "2021-11-04 16:59:08",
                        departId: "c6d7cb4deeac411cb3384b1b31278596",
                        departId_dictText: "北京国炬公司",
                        description: "11",
                        id: "1456184222587367425",
                        roleCode: "1122",
                        roleName: "11",
                        updateBy: null,
                        updateTime: null
                    }
                ],
                searchCount: true,
                size: 10,
                total: 2
            },
            success: true
        };
        resolve(data);
    })
}

/**
 * 职务列表
 */
export function queryPositionList() {
    return new Promise(resolve => {
        let data = {
            code: 0,
            message: "",
            result: {
                countId: null,
                current: 1,
                maxLimit: null,
                optimizeCountSql: true,
                orders: [],
                pages: 1,
                records: [
                    {
                        code: "sad",
                        companyId: null,
                        createBy: "jeecg",
                        createTime: "2022-01-21 16:07:23",
                        id: "1484437453287776258",
                        name: "as",
                        postRank: "3",
                        postRank_dictText: "中级",
                        sysOrgCode: "A01",
                        updateBy: null,
                        updateTime: null
                    },
                    {
                        code: "2e3",
                        companyId: null,
                        createBy: "jeecg",
                        createTime: "2022-01-21 16:07:16",
                        id: "1484437423885705217",
                        name: "sad",
                        postRank: "2",
                        postRank_dictText: "助级",
                        sysOrgCode: "A02A02A02",
                        updateBy: null,
                        updateTime: null
                    },
                    {
                        code: "2",
                        companyId: null,
                        createBy: "jeecg",
                        createTime: "2022-01-21 16:07:10",
                        id: "1484437399311278082",
                        name: "34",
                        postRank: "2",
                        postRank_dictText: "助级",
                        sysOrgCode: "A01",
                        updateBy: null,
                        updateTime: null
                    },
                    {
                        code: "1",
                        companyId: null,
                        createBy: "jeecg",
                        createTime: "2022-01-21 16:07:03",
                        id: "1484437370597072898",
                        name: "23",
                        postRank: "2",
                        postRank_dictText: "助级",
                        sysOrgCode: "A01",
                        updateBy: null,
                        updateTime: null
                    },
                    {
                        code: "11222",
                        companyId: null,
                        createBy: "jeecg",
                        createTime: "2022-01-20 13:39:58",
                        id: "1484037967650545665",
                        name: "22",
                        postRank: "1",
                        postRank_dictText: "员级",
                        sysOrgCode: "A01",
                        updateBy: null,
                        updateTime: null,
                    }
                ],
                size: 10,
                total: 5,
            },
            success: true
        };
        resolve(data);
    })
}

export function queryAnnounceList() { 
    return new Promise(resolve => {
        let data = {
            code: 0,
            message: "",
            result: {
                countId: null,
                current: 1,
                maxLimit: null,
                optimizeCountSql: true,
                orders: [],
                pages: 7,
                records: [
                    {
                        busId: null,
                        busType: null,
                        cancelTime: null,
                        createBy: "jeecg",
                        createTime: "2022-01-24 18:26:15",
                        delFlag: "0",
                        dtTaskId: null,
                        endTime: null,
                        id: "1485559564580478977",
                        msgAbstract: null,
                        msgCategory: "2",
                        msgCategory_dictText: "系统消息",
                        msgContent: "<h1>&nbsp; &nbsp; 系统通知</h1>\n<ul>\n<li>通知时间：&nbsp; 2022-01-24 18:26:15</li>\n<li>通知内容：&nbsp; 同步用户到工作流完成！</li>\n</ul>",
                        msgType: "USER",
                        msgType_dictText: "指定用户",
                        openPage: null,
                        openType: null,
                        priority: "M",
                        priority_dictText: "中",
                        sendStatus: "1",
                        sendStatus_dictText: "已发布",
                        sendTime: "2022-01-24 18:26:15",
                        sender: "jeecg",
                        startTime: null,
                        titile: "用户同步提醒",
                        updateBy: null,
                        updateTime: null,
                        userIds: null
                    },
                    {
                        busId: null,
                        busType: null,
                        cancelTime: null,
                        createBy: "jeecg",
                        createTime: "2022-01-24 17:56:18",
                        delFlag: "0",
                        dtTaskId: null,
                        endTime: null,
                        id: "1485552024828305409",
                        msgAbstract: null,
                        msgCategory: "2",
                        msgCategory_dictText: "系统消息",
                        msgContent: "您有新的任务需要审批!",
                        msgType: "USER",
                        msgType_dictText: "指定用户",
                        openPage: null,
                        openType: null,
                        priority: "M",
                        priority_dictText: "中",
                        sendStatus: "1",
                        sendStatus_dictText: "已发布",
                        sendTime: "2022-01-24 17:56:18",
                        sender: "system",
                        startTime: null,
                        titile: "任务提醒",
                        updateBy: null,
                        updateTime: null,
                        userIds: null
                    },
                    {
                        busId: null,
                        busType: null,
                        cancelTime: null,
                        createBy: "jeecg",
                        createTime: "2022-01-24 17:56:18",
                        delFlag: "0",
                        dtTaskId: null,
                        endTime: null,
                        id: "1485552024870248450",
                        msgAbstract: null,
                        msgCategory: "2",
                        msgCategory_dictText: "系统消息",
                        msgContent: "您有新的任务需要审批!",
                        msgType: "USER",
                        msgType_dictText: "指定用户",
                        openPage: null,
                        openType: null,
                        priority: "M",
                        priority_dictText: "中",
                        sendStatus: "1",
                        sendStatus_dictText: "已发布",
                        sendTime: "2022-01-24 17:56:18",
                        sender: "system",
                        startTime: null,
                        titile: "任务提醒",
                        updateBy: null,
                        updateTime: null,
                        userIds: null
                    },
                    {
                        busId: null,
                        busType: null,
                        cancelTime: null,
                        createBy: "jeecg",
                        createTime: "2022-01-24 17:54:01",
                        delFlag: "0",
                        dtTaskId: null,
                        endTime: null,
                        id: "1485551449923444738",
                        msgAbstract: null,
                        msgCategory: "2",
                        msgCategory_dictText: "系统消息",
                        msgContent: "您有新的任务需要审批!",
                        msgType: "USER",
                        msgType_dictText: "指定用户",
                        openPage: null,
                        openType: null,
                        priority: "M",
                        priority_dictText: "中",
                        sendStatus: "1",
                        titile: "任务提醒",
                        updateBy: null,
                        updateTime: null,
                        userIds: null
                    },
                    {
                        busId: null,
                        busType: null,
                        cancelTime: null,
                        createBy: "jeecg",
                        createTime: "2022-01-24 17:42:03",
                        delFlag: "0",
                        dtTaskId: null,
                        endTime: "2022-01-28 17:41:52",
                        id: "1485548441441460226",
                        msgAbstract: "2022年春节放假通知\t",
                        msgCategory: "1",
                        msgCategory_dictText: "通知公告",
                        msgContent: "<table class=\"\" style=\"border-collapse: separate; width: 1632px; border-radius: 4px 4px 0px 0px; border-spacing: 0px; border-width: 1px 0px 0px 1px; border-image: initial; color: rgba(0, 0, 0, 0.65); font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'; font-size: 14px; background-color: #ffffff; border-color: #e8e8e8 initial initial #e8e8e8; border-style: solid initial initial solid;\">\n<tbody class=\"ant-table-tbody\" style=\"box-sizing: border-box;\">\n<tr class=\"ant-table-row ant-table-row-level-0\" style=\"box-sizing: border-box;\" data-row-key=\"1485548192580820994\">\n<td class=\"\" style=\"box-sizing: border-box; border-bottom: 1px solid #e8e8e8; transition: background 0.3s ease 0s; padding: 12px 8px; overflow-wrap: break-word; border-right: 1px solid #e8e8e8; background: #e6f7ff; text-align: center;\">2022年春节放假通知<br /><br /></td>\n</tr>\n</tbody>\n</table>",
                        msgType: "ALL",
                        msgType_dictText: "全体用户",
                        openPage: null,
                        openType: null,
                        priority: "H",
                        priority_dictText: "高",
                        sendStatus: "1",
                        sendStatus_dictText: "已发布",
                        sendTime: "2022-01-24 17:42:07",
                        sender: "jeecg",
                        startTime: null,
                        titile: "2022年春节放假通知\t",
                        updateBy: "jeecg",
                        updateTime: "2022-01-24 17:42:07",
                        userIds: null
                    },
                    {
                        busId: null,
                        busType: null,
                        cancelTime: "2022-01-24 17:41:32",
                        createBy: "jeecg",
                        createTime: "2022-01-24 17:41:04",
                        delFlag: "0",
                        dtTaskId: null,
                        endTime: "2022-01-28 17:40:21",
                        id: "1485548192580820994",
                        msgAbstract: "春节放假",
                        msgCategory: "2",
                        msgCategory_dictText: "系统消息",
                        msgContent: "<p>2022年公司放假公告</p>\n<p>&nbsp;</p>\n<p>春节1月28日-2022年2月15日放假&nbsp; &nbsp;全薪</p>",
                        msgType: "ALL",
                        msgType_dictText: "全体用户",
                        openPage: null,
                        openType: null,
                        priority: "H",
                        priority_dictText: "高",
                        sendStatus: "2",
                        sendStatus_dictText: "已撤销",
                        sendTime: "2022-01-24 17:41:14",
                        sender: "jeecg",
                        startTime: null,
                        titile: "2022年春节放假通知",
                        updateBy: "jeecg",
                        updateTime: "2022-01-24 17:41:32",
                        userIds: null
                    },
                    {
                        busId: "1485545284929904641",
                        busType: "email",
                        cancelTime: null,
                        createBy: "jeecg",
                        createTime: "2022-01-24 17:29:31",
                        delFlag: "0",
                        dtTaskId: null,
                        endTime: null,
                        id: "1485545285005402113",
                        msgAbstract: null,
                        msgCategory: "1",
                        msgCategory_dictText: "通知公告",
                        msgContent: "您收到一封新的邮件，请及时处理。",
                        msgType: "USER",
                        msgType_dictText: "指定用户",
                        openPage: "modules/eoa/email/modals/EoaEmailInForm",
                        openType: "component",
                        priority: "M",
                        priority_dictText: "中",
                        sendStatus: "1",
                        sendStatus_dictText: "已发布",
                        sendTime: "2022-01-24 17:29:31",
                        sender: "jeecg",
                        startTime: null,
                        titile: "w ",
                        updateBy: null,
                        updateTime: null,
                        userIds: null
                    },
                    {
                        busId: "932601",
                        busType: "bpm",
                        cancelTime: null,
                        createBy: "jeecg",
                        createTime: "2022-01-24 17:18:59",
                        delFlag: "0",
                        dtTaskId: null,
                        endTime: null,
                        id: "1485542633571934209",
                        msgAbstract: null,
                        msgCategory: "2",
                        msgCategory_dictText: "系统消息",
                        msgContent: "<h1>&nbsp; &nbsp;流程催办提醒</h1>\n<ul>\n<li>流程名称：&nbsp; 员工离职申请</li>\n<li>催办任务：&nbsp; 总经理</li>\n<li>催办时间 :&nbsp; &nbsp; 2022-01-24 17:18:58</li>\n<li>催办内容 :&nbsp; &nbsp; 123132123123</li>\n</ul>",
                        msgType: "USER",
                        msgType_dictText: "指定用户",
                        openPage: "/bpm/task/MyTaskList",
                        openType: "url",
                        priority: "M",
                        priority_dictText: "中",
                        sendStatus: "1",
                        sendStatus_dictText: "已发布",
                        sendTime: "2022-01-24 17:18:59",
                        sender: "jeecg",
                        startTime: null,
                        titile: "流程催办提醒",
                        updateBy: null,
                        updateTime: null,
                        userIds: null
                    },
                    {
                        busId: null,
                        busType: null,
                        cancelTime: null,
                        createBy: "jeecg",
                        createTime: "2022-01-24 17:17:28",
                        delFlag: "0",
                        dtTaskId: null,
                        endTime: null,
                        id: "1485542253979033601",
                        msgAbstract: null,
                        msgCategory: "2",
                        msgCategory_dictText: "系统消息",
                        msgContent: "<h1>&nbsp; &nbsp; 系统通知</h1>\n<ul>\n<li>通知时间：&nbsp; 2022-01-24 17:17:28</li>\n<li>通知内容：&nbsp; 同步用户到工作流完成！</li>\n</ul>",
                        msgType: "USER",
                        msgType_dictText: "指定用户",
                        openPage: null,
                        openType: null,
                        priority: "M",
                        priority_dictText: "中",
                        sendStatus: "1",
                        sendStatus_dictText: "已发布",
                        sendTime: "2022-01-24 17:17:28",
                        sender: "jeecg",
                        startTime: null,
                        titile: "用户同步提醒",
                        updateBy: null,
                        updateTime: null,
                        userIds: null
                    },
                    {
                        busId: null,
                        busType: null,
                        cancelTime: null,
                        createBy: "jeecg",
                        createTime: "2022-01-24 16:58:46",
                        delFlag: "0",
                        dtTaskId: null,
                        endTime: null,
                        id: "1485537547126890497",
                        msgAbstract: null,
                        msgCategory: "2",
                        msgCategory_dictText: "系统消息",
                        msgContent: "<h1>&nbsp; &nbsp; 系统通知</h1>\n<ul>\n<li>通知时间：&nbsp; 2022-01-24 16:58:45</li>\n<li>通知内容：&nbsp; 同步用户到工作流完成！</li>\n</ul>",
                        msgType: "USER",
                        msgType_dictText: "指定用户",
                        openPage: null,
                        openType: null,
                        priority: "M",
                        priority_dictText: "中",
                        sendStatus: "1",
                        sendStatus_dictText: "已发布",
                        sendTime: "2022-01-24 16:58:46",
                        sender: "jeecg",
                        startTime: null,
                        titile: "用户同步提醒",
                        updateBy: null,
                        updateTime: null,
                        userIds: null
                    }
                ],
                size: 10
            },
            success: true
        };
        resolve(data);
    })
}

export function queryDictList() { 
    return new Promise(resolve => { 
        let data = {
            code: 0,
            message: "",
            result: {
                countId: null,
                current: 1,
                maxLimit: null,
                optimizeCountSql: true,
                orders: [],
                pages: 1,
                records: [
                    {
                        createBy: "admin",
                        createTime: "2021-11-04 18:17:35",
                        delFlag: 0,
                        description: null,
                        dictCode: "vue3",
                        dictName: "vue3示例",
                        id: "1456203964245159937",
                        type: 0,
                        updateBy: null,
                        updateTime: null
                    },
                    {
                        createBy: "admin",
                        createTime: "2021-07-07 10:47:07",
                        delFlag: 0,
                        description: "",
                        dictCode: "app_menu_group",
                        dictName: "菜单分组",
                        id: "1412604056898052097",
                        type: 0,
                        updateBy: null,
                        updateTime: null
                    },
                    {
                        createBy: "admin",
                        createTime: "2021-02-02 11:33:38",
                        delFlag: 0,
                        description: "",
                        dictCode: "is_open",
                        dictName: "开关",
                        id: "1356445645198135298",
                        type: 0,
                        updateBy: "admin",
                        updateTime: "2021-02-02 15:28:12",
                    },
                    {
                        createBy: "admin",
                        createTime: "2020-12-15 19:43:30",
                        delFlag: 0,
                        description: "积木报表演示",
                        dictCode: "zhiwu",
                        dictName: "报表测试职务",
                        id: "1338811917237489665",
                        type: 0,
                        updateBy: "admin",
                        updateTime: "2021-01-13 14:03:13"
                    },
                    {
                        createBy: "admin",
                        createTime: "2020-09-26 19:21:14",
                        delFlag: 0,
                        description: "有效无效状态",
                        dictCode: "valid_status",
                        dictName: "有效无效状态",
                        id: "68168534ff5065a152bfab275c2136f8",
                        type: 0,
                        updateBy: "admin",
                        updateTime: "2019-06-07 00:30:10"
                    },
                    {
                        createBy: "admin",
                        createTime: "2020-07-07 15:22:25",
                        delFlag: 0,
                        description: "租户状态",
                        dictCode: "tenant_status",
                        dictName: "租户状态",
                        id: "1280401766745718786",
                        type: 0,
                        updateBy: null,
                        updateTime: null
                    },
                    {
                        createBy: "admin",
                        createTime: "2020-06-16 11:58:18",
                        delFlag: 0,
                        description: "",
                        dictCode: "secret_level",
                        dictName: "密级",
                        id: "1272740254731100161",
                        type: 0,
                        updateBy: null,
                        updateTime: null
                    },
                    {
                        createBy: "admin",
                        createTime: "2020-06-16 11:55:54",
                        delFlag: 0,
                        description: "",
                        dictCode: "urgency",
                        dictName: "缓急",
                        id: "1272739651112034306",
                        type: 0,
                        updateBy: null,
                        updateTime: null
                    },
                    {
                        createBy: "admin",
                        createTime: "2020-04-24 21:11:53",
                        delFlag: 0,
                        description: "",
                        dictCode: "meeting_scale",
                        dictName: "会议室规模",
                        id: "1253673013610672130",
                        type: null,
                        updateBy: "",
                        updateTime: null
                    },
                    {
                        createBy: "admin",
                        createTime: "2020-04-22 16:46:04",
                        delFlag: 0,
                        description: "",
                        dictCode: "cms_menu_type",
                        dictName: "栏目类型",
                        id: "1252881342601908225",
                        type: null,
                        updateBy: "",
                        updateTime: null
                    }
                ],
                size: 10
            },
            success: true
        }
        resolve(data);
    })
}

export function queryCategoryList() { 
    return new Promise(resolve => { 
        let data = {
            code: 0,
            message: "",
            result: {
                countId: null,
                current: 1,
                maxLimit: null,
                optimizeCountSql: true,
                orders: [],
                pages: 1,
                records: [
                    {
                        code: "B02",
                        createBy: "admin",
                        createTime: "2019-10-14 18:37:59",
                        hasChild: "1",
                        id: "1183693424827564034",
                        name: "物料树",
                        pid: "0",
                        sysOrgCode: "A01",
                        updateBy: "admin",
                        updateTime: "2019-10-14 18:38:15"
                    },
                    {
                        code: null,
                        createBy: "admin",
                        createTime: "2020-02-21 16:20:16",
                        hasChild: "1",
                        id: "1230769196661510146",
                        name: "省",
                        pid: "0",
                        sysOrgCode: "A01A03",
                        updateBy: "admin",
                        updateTime: "2020-02-21 16:20:31"
                    },
                    {
                        code: "B03",
                        createBy: "admin",
                        createTime: "2020-02-25 19:16:11",
                        hasChild: "1",
                        id: "1232263009944047617",
                        name: "山东省",
                        pid: "0",
                        sysOrgCode: "A01",
                        updateBy: "admin",
                        updateTime: "2020-02-25 19:16:21"
                    },
                    {
                        code: "B04",
                        createBy: "admin",
                        createTime: "2021-11-04 18:15:52",
                        hasChild: "1",
                        id: "1456203532508672002",
                        name: "低代码",
                        pid: "0",
                        sysOrgCode: "A01",
                        updateBy: "admin",
                        updateTime: "2021-11-04 18:15:59"
                    },
                    {
                        code: "B01",
                        createBy: "admin",
                        createTime: "2019-06-10 15:34:11",
                        hasChild: "1",
                        id: "5c8f68845e57f68ab93a2c8d82d26ae1",
                        name: "笔记本",
                        pid: "0",
                        sysOrgCode: "A01",
                        updateBy: "admin",
                        updateTime: "2019-06-10 15:34:24"
                    }
                ],
                size: 10,
                total: 5
            },
            success: true
        };
        resolve(data);
    })
}

export function queryDictTreeData() {
    return new Promise(resolve => {
        let data = {
            code: 0,
            message: "",
            result: [
                {
                    children: null,
                    code: null,
                    icon: null,
                    key: "1183693424827564034",
                    leaf: false,
                    parentId: "0",
                    title: "物料树",
                    value: null
                },
                {
                    children: null,
                    code: null,
                    icon: null,
                    key: "1230769196661510146",
                    leaf: false,
                    parentId: "0",
                    title: "省",
                    value: null
                },
                {
                    children: null,
                    code: null,
                    icon: null,
                    key: "1232263009944047617",
                    leaf: false,
                    parentId: "0",
                    title: "山东省",
                    value: null
                },
                {
                    children: null,
                    code: null,
                    icon: null,
                    key: "1456203532508672002",
                    leaf: false,
                    parentId: "0",
                    title: "低代码",
                    value: null
                },
                {
                    children: null,
                    code: null,
                    icon: null,
                    key: "5c8f68845e57f68ab93a2c8d82d26ae1",
                    leaf: false,
                    parentId: "0",
                    title: "笔记本",
                    value: null
                }
            ],
            success: true
        };
        resolve(data);
    })
}

export function queryDictTreeChild() {
    return new Promise(resolve => {
        let data = {
            code: 0,
            message: "",
            result: [
                {
                    children: null,
                    code: null,
                    icon: null,
                    key: "1230769253267836929",
                    leaf: false,
                    parentId: "1230769196661510146",
                    title: "安徽省",
                    value: null
                },
                {
                    children: null,
                    code: null,
                    icon: null,
                    key: "1230769290609725441",
                    leaf: false,
                    parentId: "1230769196661510146",
                    title: "山东省",
                    value: null
                },
                {
                    children: null,
                    code: null,
                    icon: null,
                    key: "1486907855159222274",
                    leaf: false,
                    parentId: "1230769196661510146",
                    title: "1232132",
                    value: null
                }
            ],
            success: true
        };
        resolve(data);
    })
}